home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 47
/
Amiga Format AFCD47 (Issue 131, Xmas 1999).iso
/
-serious-
/
comms
/
www
/
awebresume
/
awebresume.cfg
< prev
next >
Wrap
Text File
|
1999-10-04
|
17KB
|
409 lines
*******************************************************************
* *
* DO NOT EDIT THIS SECTION! *
* *
* $VER: AWebResume.cfg 1.11 (10.9.99) © 1999 Duane McDonnell *
* *
* For technical support e-mail tachyon@tolstoi.saccii.net.au *
* *
*******************************************************************
* *
* If you modify this file, be sure to save it back to *
* "ENVARC:AWeb3/AWebResume.cfg". If AWebResume is running in the *
* background the new configuration settings will take effect soon *
* after saving the file as AWebResume sets up a file notification *
* on the specified path. If the filesystem does not support file *
* notifications run AWebResume again to update its configuration *
* buffer or reboot the system. *
* *
* Some general notes on specifying configuration settings: *
* *
* Boolean switches (those marked BOOL) accept either 0 or 1 as *
* their parameters. 0 means false while 1 means true. *
* *
* Numerical values (those marked NUMBER) accept decimal values. *
* *
* Strings (those marked STRING) can either be quoted or unquoted. *
* You should quote strings if they contain spaces. For example, *
* "this string is quoted". *
* *
*******************************************************************
************************************
* *
* Download resume related settings *
* *
************************************
; ResumeEnable (BOOL)
;
; Set ResumeEnable to 1 to enable interrupted download detections and
; resumptions. This acts as a master switch for all resume related
; settings.
;
; Do not download to AWeb's temporary or cache paths if you want
; AWebResume to offer resume support for interrupted downloads. These
; paths (and their sub-directories) are ignored by AWebResume to prevent
; excessive and unnecessary interrupted download detections (unless AWeb
; would normally generate requesters for them). You should therefore set
; your "Save" path to a directory outside the scope of both the temporary
; and cache paths.
ResumeEnable 1
; AutoResume (BOOL)
;
; Set AutoResume to 1 if you want AWebResume to automatically resume
; interrupted downloads initiated via AWeb's LOAD ARexx command if a
; download path was given. AutoResume is useful for preventing
; interrupted download requesters appearing when ARexx is controlling
; an unattended download session. This setting is ignored if a user
; requested download fails (a user request is regarded as a request
; which did not come via ARexx).
AutoResume 0
; ReqTimeout (NUMBER)
;
; ReqTimeout specifies the number of seconds to display interrupted
; download requesters for before automatically satisfying them. This
; is to support unattended operations. Specifying 0 tells AWebResume
; not to automatically satisfy requesters but to wait for intervention
; from the user.
;
; Requesters are satisfied according to the following rules:
;
; - If the requester has a 'Resume' gadget, 'Resume' will be selected.
; - If the requester has a 'Select' gadget, 'Retry' will be selected.
ReqTimeout 120
; AcceptFilter (STRING)
; RejectFilter (STRING)
;
; AcceptFilter and RejectFilter are used to filter files which you
; normally wouldn't download to a file and therefore wouldn't resume.
; Filtering files helps to decrease memory usage.
;
; The pattern matching filters work in two stages. Firstly, URLs which
; match AcceptFilter are added to a list of potential URLs which might
; require resuming, then this list is further pruned by applying
; RejectFilter. Note that the filters are used to filter the 'object'
; part of a URL (the final part specifying a filename). Both filters
; are case-insensitive and should be specified in standard AmigaDOS
; format. To perform no filtering at all, set AcceptFilter to "#?"
; and RejectFilter to "~(#?)".
;
; The filters are ignored if AWeb would normally generate an "incomplete
; file" requester for an interrupted download. In this case, AWebResume
; will process the interrupt to ensure consistency with AWeb's normal
; operating behaviour.
AcceptFilter #?
RejectFilter #?.(htm|html)
; HTTPTemplate (STRING)
; HTTPSTemplate (STRING)
; FTPTemplate (STRING)
;
; HTTPTemplate, HTTPSTemplate and FTPTemplate specify command templates
; for calling an HTTP, HTTPS and FTP resumption program respectively.
; HTTPTemplate is called for the "http://" scheme, HTTPSTemplate for
; "https://" and FTPTemplate for "ftp://".
;
; If you do not specify a template for a particular scheme then download
; resumption support will not be available for URLs using that scheme.
; Supplying no templates effectively sets ResumeEnable to 0.
;
; The command templates are similar to the normal arguments you would
; issue when invoking the programs from the shell except you specify
; tokens for AWebResume to expand prior to calling each program.
;
; AWebResume supports the following basic tokens:
;
; %u URL of file whose download was interrupted
; %f Full file path of interrupted download file
; %p Proxy used to download initial part of file (¹)
; %r URL which referred us to the URL being downloaded (²)
; %b Browser user-agent/spoofing identification string
;
; Notes:
;
; ¹ It is recommended that you embed the proxy token in the conditional
; proxy argument specifier (CondProxy) and use the %cp token rather
; than %p in the template. This way, proxy information will only
; form part of the final expanded template if a proxy was used to
; collect the initial part of the file being resumed.
;
; ² It is recommended that you embed the referer token in the conditional
; referer argument specifier (CondRefer) and use the %cr token rather
; than %r in the template. This way, referer information will not
; form part of the final expanded template if you have enabled AWeb's
; "browse anonymously" configuration option or if you manually entered
; the URL or followed a local link to get to it (in which case there
; is no referer).
;
; In addition to the basic tokens, AWebResume allows you to use conditional
; argument tokens in the template. Conditional argument tokens will only be
; included in the final template expansion if certain conditions are met.
;
; The following conditional argument tokens are supported:
;
; %cp Conditional proxy argument token. If a proxy was used to download
; the initial part of the file being resumed then this token, if
; specified in the template, will be expanded to CondProxy (which
; itself will be expanded before use). If no proxy was used this
; token will be ignored.
;
; %cr Conditional referer argument token. If AWeb was browsing with
; referer information enabled then this token, if specified in
; the template, will be expanded to CondRefer (which itself will
; be expanded before use). If no referer information was in use,
; either because you configured AWeb to browse anonymously or
; because you entered the URL manually rather than following a
; link to get to it, this token will be ignored.
;
; The following conditional argument specifiers are supported:
;
; CondProxy (STRING)
;
; Conditional proxy argument specifier. This will be expanded if the %cp
; token is encountered in a template, but only if a proxy was used to
; download the initial part of the file being resumed. You may only use
; the %p token in this specifier, all other tokens will be ignored.
;
; CondRefer (STRING)
;
; Conditional referer argument specifier. This will be expanded if the
; %cr token is encountered in a template, but only if AWeb's "browse
; anonymously" configuration option is disabled and the URL had a
; referer (you followed a non-local link to get to it). You may only
; use the %r token in this specifier, all other tokens will be ignored.
;============================================================================
; The following template/specifier examples show how to use HTTPResume
; by Andriya Antonijevic to resume HTTP and HTTPS downloads (you need
; version 1.7 or higher to resume HTTPS downloads).
; This version opens HTTPResume's GUI on AWeb's public screen or on the
; default public screen if AWeb's public screen is unavailable.
;
HTTPTemplate "HTTPResume URL="%u" OUTFILE="%f" %cp %cr GUI PUBSCREEN=AWeb AUTORESUME AUTOSTART AUTOEXIT"
; This version outputs to a console window on AWeb's public screen or on
; the default public screen if AWeb's public screen is unavailable.
;
;HTTPTemplate "HTTPResume URL="%u" OUTFILE="%f" %cp %cr AUTORESUME > "CON:////Resuming download.../AUTO/CLOSE/WAIT/INACTIVE/SCREEN AWeb""
; This version opens HTTPResume's GUI on AWeb's public screen or on the
; default public screen if AWeb's public screen is unavailable.
;
HTTPSTemplate "HTTPResume URL="%u" OUTFILE="%f" %cp %cr GUI PUBSCREEN=AWeb AUTORESUME AUTOSTART AUTOEXIT"
; This version outputs to a console window on AWeb's public screen or on
; the default public screen if AWeb's public screen is unavailable.
;
;HTTPSTemplate "HTTPResume URL="%u" OUTFILE="%f" %cp %cr AUTORESUME > "CON:////Resuming download.../AUTO/CLOSE/WAIT/INACTIVE/SCREEN AWeb""
CondProxy PROXY=%p
CondRefer REFERER="%r"
;============================================================================
;============================================================================
; The following template examples show how to use GNU Wget to resume
; HTTP and FTP downloads. Note that Wget examines the URL to determine
; the file to resume to. This can cause problems if you change the
; default download filename offered by AWeb.
;HTTPTemplate "Wget -o "CON:////Resuming download.../AUTO/CLOSE/WAIT/INACTIVE/SCREEN AWeb" --user-agent=%b --continue "%u""
FTPTemplate "Wget -o "CON:////Resuming download.../AUTO/CLOSE/WAIT/INACTIVE/SCREEN AWeb" --continue "%u""
;============================================================================
*************************************
* *
* Download by mail related settings *
* *
*************************************
; MailEnable (BOOL)
;
; Set MailEnable to 1 if you want AWebResume to give you the option of
; obtaining an interrupted download via your e-mail account. This is
; useful for stubborn files which AWeb and/or the resume program can't
; seem to download in full. If this option is set a 'Mail' gadget will
; appear in AWebResume's interrupted download requester. The download
; request will be sent to downloadslave.com for processing. This service
; requires that you obtain a password before submitting download requests.
; Refer to the MailPassword discussion for further information.
;
; ResumeEnable must also be set for this option to have any effect.
MailEnable 0
; MailPassword (STRING)
;
; This string should be set to the password issued to you by
; downloadslave.com. The password is assigned to the address you send
; the request from so be sure to sign up with the account you want
; download requests sent to. Mail data@downloadslave.com with the
; subject set to "REQUEST PASSWORD" (no quotes) and enter the password
; you receive back below. If you lose your password send mail to the
; same address with the subject set to "REMEMBER PASSWORD".
MailPassword your_password
; MailAccount (STRING)
;
; Set MailAccount to the e-mail account where you want download requests
; sent to (the password specified in MailPassword must be assigned to
; this account). This address takes precedence over the Reply-To:
; address set in AWeb. If you do not specify this setting then AWeb's
; Reply-To: address from the network settings will be used.
MailAccount user@domain.com
; MailTemplate (STRING)
;
; Here you should specify the template for calling an external mail
; program to send the download request to downloadslave.com.
;
; The template supports the following tokens:
;
; %t To: address (this is always data@downloadslave.com)
; %r Reply-To: address (where the file will be sent to)
; %s Subject line with URL to download
; %m Message body containing the required password
; %f File containing a copy of the message body
;
; If you do not specifiy a template the mail program configured in AWeb's
; network settings will be used. AWebResume will invoke this mail program
; by asking you to submit a mailto: form. It is recommended that you
; configure MailTemplate since there is no standard way to submit a
; message body using mailto: (however, AWeb's integrated mail program
; will recognise the message body submitted by AWebResume).
; Example template for use with YAM 2.0 by Marcel Beck (note that this
; only works if YAM is not already running, an ARexx script would be
; needed for the general case).
;
;MailTemplate "YAM MAILTO=%t SUBJECT="%s" LETTER="%f""
****************************
* *
* Logging related settings *
* *
****************************
; LogEnable (BOOL)
;
; Set LogEnable to 1 to enable event logging. If you enable this option
; you must also specify a log file to output to using LogOutput. The log
; stores information about resumption and download by mail attempts so
; that you have a record to refer back to in case an event fails.
LogEnable 1
; LogOutput (STRING)
;
; Specifies the file to send logging information to.
LogOutput "AWebResume.log"
**************************
* *
* Miscellaneous settings *
* *
**************************
; ShareEnable (BOOL)
;
; Set ShareEnable to 1 if you want AWebResume to open AWeb's download
; files in shared read/write mode. This will allow you to read files
; while they are still being downloaded. Take care when doing this
; however as some programs will crash when given truncated files.
; You should test the program first to give yourself confidence it
; implements decent error/truncation detection. LhA is very robust
; in this respect, you can often view the contents of an archive
; and extract documentation to read before a download has completed.
ShareEnable 1
; HuntEnable (BOOL)
;
; Our history deserves a closer look.
HuntEnable 1
; AutoFlush (BOOL)
;
; This option tells AWebResume how to flush any temporary HTML files
; it might generate. Temporary HTML files are loaded into AWeb using
; the "file://localhost/" scheme.
;
; Setting AutoFlush tells AWebResume to generate a temporary HTML file
; when required, load it into AWeb, then delete it. Whilst this procedure
; is desirable for keeping memory overheads to a minimum it can cause
; problems if documents are flushed from AWeb's memory cache before
; you've finished with them.
;
; Clearing AutoFlush prevents AWebResume from deleting temporary HTML
; files until AWeb's shutdown is detected.
AutoFlush 0
******************************
* *
* Debugging related settings *
* *
******************************
; DebugEnable (BOOL)
;
; Set DebugEnable to 1 to enable AWebResume's debugging mode. If you
; enable this option you must also specify a valid debugging output
; channel using DebugOutput. The debugging output is helpful if you're
; writing your own templates as the expanded template will be sent
; to the debugging channel when an external program is called.
DebugEnable 0
; DebugOutput (STRING)
;
; If DebugEnable was set to 1 then this option specifies the output
; channel to send the debugging information to. This should be given
; as a standard AmigaDOS file specification. If the output is to a
; file which already exists then the output will be appended to the
; existing file otherwise a new file will be created. If the output is
; to a window then the following control characters are also available
; for debugging purposes:
;
; ^C Update settings from AWebResume's configuration file
; ^D Update settings from AWeb's network configuration file
; ^E Update settings from AWeb's program configuration file
; ^F Flush URL/filename hash entries currently not in use
DebugOutput "CON:////AWebResume Debugging Window/AUTO/CLOSE/INACTIVE"